<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@ page import="com.dianning.comm.*" %>
<%@ page import="com.dianning.web.servlet.*" %>
<link href="css/top2.css" rel="stylesheet" type="text/css" />
<div class="newtop11" >
 <span class="newtop11L">切换城市：<a href="http://www.dianning.com/default.asp">沈阳</a> | <a href="http://as.dianning.com/default.asp">鞍山</a>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
 
 <span class="newtop11tq"><a href="http://www.weather.com.cn/weather/101070101.shtml" target="_blank" class="link_top11">今日天气</a>&nbsp;|&nbsp;<a href="http://218.25.58.44/searchsys/" target="_blank"  class="link_top11">违章查询</a> </span>
 <span class="newtop2r11">
 <div class="newtop2r1 ">
<%
UserSession us = DianningUtil.getUser(request);
if(us == null){
%>
   <span class="denglu"><li><a href="/" class="link_b">点宁网首页</a></li> 
   <li><a href="/user/profile.action" class="link_b">开通网店</a></li>  |
   <li><a href="/register.action" class="link_b"><img src="/images/an2.gif" width="39" height="15" /></a></li> |
   <li><a href="/login.action" class="link_b"><img src="/images/an1.gif" width="39" height="15" /></a></li>    
   </span>
<%
}else{
	if(us.getUid() == 0){
%>
   <span class="denglu"><li><a href="/" class="link_b">点宁网首页</a></li> 
   <li><a href="/user/profile.action" class="link_b">开通网店</a></li>  |
   <li><a href="/register.action" class="link_b"><img src="/images/an2.gif" width="39" height="15" /></a></li> |
   <li><a href="/login.action" class="link_b"><img src="/images/an1.gif" width="39" height="15" /></a></li>    
   </span>
<%
	}else{
%>
	<span class="denglu">
	<li><a href="/" class="link_b">点宁网首页</a></li> 	 
	<li><a href="/user/profile.action" class="link_b">开通网店</a></li>  | 
	   <li><a href="/logout.action" class="link_b"><FONT color=#8C8C8C>退出</FONT></a></li> |
	   <li><a href="/user/index.action" class="link_b">[用户中心]</a></li>
	   <li  class="topu"><%=us.getUsername()%></li>
	</span>
<%	
	}
}
%>   
  </div>
 
 </span>
</div>